<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<script src="js/jquery.min.js"></script>
<script type="text/javascript">
	function openLock (id) {
		alert(id);
		$.ajax({
           type: "POST",
           url:"lock/open",
           data:{imei:id},// 你的formid
           async: false,
           success: function(data) {
        	   alert(data);
           }
       });
	}
</script>

<title>昇雅珀</title>
</head>
<body >
	Hello Netty!
	<button onclick="openLock(865503037412639)">开锁1</button>
	<button onclick="openLock(863725032615138)">开锁2</button>
</body>
</html>